package methods;

import java.io.IOException;

import methods.currentPlayer;

import com.rsbuddy.script.ActiveScript;
import com.rsbuddy.script.methods.Game;

public class disconnect extends ActiveScript{
	public static int added;
	public static void logout() throws IOException{
		if(Game.isLoggedIn()){
			if(added != 1){
				currentPlayer.selectPlayer();
				added = 1;
			}else{
				try{
				Game.logout(false);
				}catch (Exception e){
					
				}
			}
		}
	}
	@Override
	public int loop() {
		// TODO Auto-generated method stub
		return 0;
	}

}